export const Layout = () => import("@/layouts/index.vue");
const constantRoutes: Array<Menu.MenuOptions> = [
  {
    path: "/sys",
    name: "sys",
    redirect: "/sys_user",
    component: Layout,
    meta: { title: "系统管理", isFull: false, icon: "Setting", isHide: false, isAffix: false, isKeepAlive: true },
    children: [
      {
        path: "/sys_user",
        name: "sys_user",
        component: () => import("@/views/sys/sys-user/index.vue"),
        meta: {
          title: "用户管理",
          isFull: false,
          icon: "Setting",
          permission: ["sys:user"],
          isHide: false,
          isAffix: false,
          isKeepAlive: true
        }
      },
      {
        path: "/sys_roles",
        name: "sys_roles",
        component: () => import("@/views/sys/sys-roles/index.vue"),
        meta: {
          title: "角色管理",
          isFull: false,
          icon: "Setting",
          permission: ["sys:roles"],
          isHide: false,
          isAffix: false,
          isKeepAlive: true
        }
      }
    ]
  },
  {
    path: "/goods",
    name: "goods",
    component: Layout,
    meta: { title: "商品管理", isFull: false, icon: "Handbag", isHide: false, isAffix: false, isKeepAlive: true },
    children: [
      {
        path: "/goods_edit",
        name: "eidt",

        component: () => import("@/views/goods/edit/index.vue"),
        meta: { title: "新增商品", isFull: false, icon: "Sell", isHide: true, isAffix: false, isKeepAlive: false }
      },
      {
        path: "/goods_list",
        name: "list",
        component: () => import("@/views/goods/list/index.vue"),
        meta: { title: "商品列表", isFull: false, icon: "Goods", isHide: false, isAffix: false, isKeepAlive: true }
      }
    ]
  }
];
export default constantRoutes;
